package com.aos.erp.schools.model.gatherschool.vo;

import com.aos.erp.schools.enums.student.school.SchoolType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 驾校信息表
 * </p>
 *
 * @author ywb
 * @since 2018-11-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_drivers_school")
public class GatherListVo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long    id;

    /**
     * 企业名称
     */
    @ApiModelProperty(value = "区域")
    private String region;

    /**
     * 驾校类型
     */
    @ApiModelProperty(value = "驾校类型")
    private SchoolType type =SchoolType.gather;

    /**
     * 企业名称
     */
    @ApiModelProperty(value = " 驾校名称")
    private String name;

    /**
     * 驾校代码
     */
    @ApiModelProperty(value = " 驾校代码")
    private String code;

    /**
     * 所属管辖
     */
    @ApiModelProperty(value = " 所属管辖")
    private String divisionName;

    /**
     * 详细地址
     */
    @ApiModelProperty(value = " 详细地址")
    private String address;

    /**
     * 联系人
     */
    @ApiModelProperty(value = " 联系人")
    private String contacts;
    /**
     * 手机号
     */
    @ApiModelProperty(value = " 手机号")
    private String  mobile;

    /**
     * 创建人
     */
    @ApiModelProperty(value = " 创建人")
    private String  username;
    /**
     * 创建时间
     */
    private Date  created;

    @Override
    public String toString() {
        return "GatherListVo{" +
                "id=" + id +
                ", region='" + region + '\'' +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", divisionName='" + divisionName + '\'' +
                ", address='" + address + '\'' +
                ", contacts='" + contacts + '\'' +
                ", mobile='" + mobile + '\'' +
                ", username='" + username + '\'' +
                ", created=" + created +
                '}';
    }


    public String getTypeName() {
        return type.getDesc();
    }
}
